package com.mytijian.runtime;

import com.mytijian.exception.ErrorInfo;

public enum RuntimeExceptionEnum implements ErrorInfo {

	DATA_PARSE_ERROR("10112", "data parse error"), 
	SERVICE_INVOKE_ERRO("10111", "service invoke error"), 
	SERVICE_NOT_EXIST("10113", "service not exist");

	private String errorCode;
	private String errorMsg;

	private RuntimeExceptionEnum(String errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	@Override
	public String getErrorCode() {
		return errorCode;
	}

	@Override
	public String getErrorMsg() {
		return errorMsg;
	}

}
